<?php

$self = array(
	'name' => 'CQuest',

	'type' => 'collection',

	'fields' => array(
		array( 'name' => 'oid'				, 'type' => 'integer' , ) ,
		// auth
		array( 'name' => 'title'			,'type' => 'string'  , 'size' => 255 , ) ,
		array( 'name' => 'community_oid'    ,'type' => 'integer') ,
		array( 'name' => 'is_published'     ,'type' => 'bool' , 'db' => array( 'type' => 'TINYINT', 'size'=>1)) ,
		array( 'name' => 'is_finished'      ,'type' => 'bool' , 'db' => array( 'type' => 'TINYINT', 'size'=>1)) ,
	),

	'primary_key' => array('oid'),

	'db' => array('name' => 'quest'),

	'implement' => 'collections/collection.php#collection',
);